﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace PhoneBilling.Models
{
    [Serializable]
    public class Menu
    {
        

        public string Title { get; set; }
        public string Key { get; set; }
        public List<Menu> SubMenu { get; set; }

        public override bool Equals(object obj)
        {
            if (obj == null)
                return false;
            if (!(obj is Menu))
                return false;
            Menu menu = (Menu)obj;
            return menu.Key.Equals(this.Key);
        }
    }
}